package com.threaddemo2;

public class ThreadDemo1 {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            Thread t = new Thread(new Runnable() {
                @Override
                public  void run() {
                    //Goods.add2();
                    /*Goods goods = new Goods();
                    goods.store++;
                    System.out.println(goods.store);*/
                    Goods.add3();
                }
            });
            t.start();
        }
    }
}
